package com.itheima.service;

import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Menu;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    public User findByUsername(String username);
    public User findAll();
    public List<Menu> getMenuList(String username);
    public Boolean updatePassword(String username ,String oldPassword,String newPassword);

    Result findPage(QueryPageBean queryPageBean);
    Result edit(User user);
    Result deleteById(User user);
    Result findAll1();
    Result findById(Integer id);
    Result findRole();
    Result add(User user);

}
